<body>
<!--- Navigation ---->
<?php  $this->load->view("mobile_navigation");?>
<!--- Navigation ---->
<!-- top header ----->
<div class="top_head">
<div class="container">
	<div class="col-md-12">
    	<span class="slogan"><?php echo $this->config->item('slogan');?></span>
    </div>
</div>
</div>
<!-- top logo, search, open time ----->
<div class="top_head_1">
<div class="container">
	<div class="row">
    	<div class="col-xs-12 col-sm-6 col-md-4">
        	<div class="logo">
            	<a href="<?php echo site_url();?>"><img src="<?php echo base_url(ASSETPATH.'images/logo.jpg')?>"></a>
            </div>
            <div class="top_menu">
            	<ul>
                	<li><a href="<?php echo site_url(LINK_INTRO);?>"><i class="fa fa-bullseye"></i> Về Plus Mainichi</a></li>
                    <li><a href="<?php echo site_url(LINK_USER_POLICY);?>"><i class="fa fa-bullseye"></i> Chính sách thành viên</a></li>
                </ul>
            </div>
        </div>
        <div class="col-xs-12 col-sm-6 col-md-5">
        	<div class="form_top_wp">            	
                <div class="top_form_thanhtoan" style=" margin-top:18px;">
                	<ul class="top_form_thanhtoan_ul">      
                    	<?php  echo $this->go_cart->get_score_cart()?>             	
                        <li class="giaohang_home_top"><a href="<?php echo site_url("cart/view_cart")?>"><img src="<?php echo base_url(ASSETPATH.'images/icon_cart.png')?>"></a></li>
                        <li class="thanhvien_home_top"><a href="<?php echo site_url(MY_ACOUNT);?>"><i class="fa fa-user"></i> Tài khoản</a></li>
                    </ul>
                </div>
                <div class="top_form_search">
                	<ul>
                    	<li style="float:left">
                        	<div class="form_search">
                            	<?php echo form_open('cart/search', '');?>
                                    <input style="float:left; padding-left:10px" type="text" name="term" class="search-query span2" placeholder="<?php echo lang('search');?>"/>
                                    <input style="float:left" name="" type="submit" value="">
                                    <div class="clear"></div>
                                </form>
                                
                            </div>
                        </li>
                        <li style="padding-top:7px;padding-left:5px;" class="daily_top"><a href="<?php echo site_url(LINK_FOR_PROCESS_AGENCY);?>"><img src="<?php echo base_url(ASSETPATH.'images/icon_daily.png')?>"> Dành cho đại lý</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="col-xs-12 col-sm-12 col-md-3">
        	<div class="opentime">
            	<?php echo $this->config->item('tel');//$this->settings['tel']?>
            </div>
        </div>
        <div class="clear"></div>
        <div class="line_nho"></div>
    </div>
</div>
</div>




<!-- navigation ----->
<div class="navigation_wp">
<div class="container">
    <div class="menu_container">
                <ul class="toresponsive" id="menu2">
                	<li class="<?php if($this->router->class == 'cart' && $this->router->method == 'index') echo 'current-menu-item'?>"><a href="/"><img src="<?php echo base_url(ASSETPATH.'images/icon_home.png')?>"></a></li>
                	<?php foreach($this->categories[0] as $cat_menu):?>
						<li <?php echo $cat_menu->active ? 'class="current-menu-item"' : false; ?>><a href="<?php echo site_url($cat_menu->slug);?>">
						<?php echo $cat_menu->name;?></a>
                        	<?php if( !empty($this->categories[$cat_menu->id]) ){?>
                              <ul class="csssubmenu" style="z-index:2; min-width:220px">
                                   <?php  foreach ($this->categories[$cat_menu->id] as $sub_cat_menu){?>
                                   <li>
                                      <a href="<?php echo site_url($cat_menu->slug.'/'.$sub_cat_menu->slug); ?>"><?php echo $sub_cat_menu->name;?></a>
                                   </li>
                                   <?php }?>
                              </ul>
                          <?php }?>
                        </li>
					<?php endforeach;?>
                    <!--<li <?php echo $cat_menu->active ? 'class="current-menu-item"' : false; ?>><a href="<?php echo site_url('ho-tro-khach-hang');?>">Hỗ trợ khách hàng</a></li>-->
                </ul>
            </div>
</div>
</div>
<!------------------------- Content home --------------------------->
<div class="content_wp">
	<div class="container">
    	<div class="row">



<?php /*
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title><?php echo (!empty($seo_title)) ? $seo_title .' - ' : ''; echo $this->config->item('company_name'); ?></title>


<?php if(isset($meta)):?>
	<?php echo $meta;?>
<?php else:?>
<meta name="Keywords" content="Shopping Cart, eCommerce, Code Igniter">
<meta name="Description" content="Go Cart is an open source shopping cart built on the Code Igniter framework">
<?php endif;?>


<?php echo theme_css('bootstrap.min.css', true);?>
<?php echo theme_css('bootstrap-responsive.min.css', true);?>
<?php echo theme_css('styles.css', true);?>

<?php echo theme_js('jquery.js', true);?>
<?php echo theme_js('bootstrap.min.js', true);?>
<?php echo theme_js('squard.js', true);?>
<?php echo theme_js('equal_heights.js', true);?>


<?php
//with this I can put header data in the header instead of in the body.
if(isset($additional_header_info))
{
	echo $additional_header_info;
}

?>
</head>

<body>
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">

				<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
				<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</a>
			
				<a class="brand" href="<?php echo site_url();?>"><?php echo $this->config->item('company_name');?></a>
				
				<div class="nav-collapse">
					<ul class="nav">
						<?php if(isset($this->categories[0])):?>
						<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo lang('catalog');?> <b class="caret"></b></a>
							<ul class="dropdown-menu">
								<?php foreach($this->categories[0] as $cat_menu):?>
								<li <?php echo $cat_menu->active ? 'class="active"' : false; ?>><a href="<?php echo site_url($cat_menu->slug);?>"><?php echo $cat_menu->name;?></a></li>
								<?php endforeach;?>
							</ul>
						</li>	
						<?php
						endif;
						
						if(isset($this->pages[0]))
						{
							foreach($this->pages[0] as $menu_page):?>
								<li>
								<?php if(empty($menu_page->content)):?>
									<a href="<?php echo $menu_page->url;?>" <?php if($menu_page->new_window ==1){echo 'target="_blank"';} ?>><?php echo $menu_page->menu_title;?></a>
								<?php else:?>
									<a href="<?php echo site_url($menu_page->slug);?>"><?php echo $menu_page->menu_title;?></a>
								<?php endif;?>
								</li>
								
							<?php endforeach;	
						}
						?>
                        <li> Tin tức </li>
					</ul>
					
					<ul class="nav pull-right">
						
						<?php if($this->Customer_model->is_logged_in(false, false)):?>
							<li class="dropdown">
								<a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo lang('account');?> <b class="caret"></b></a>
								<ul class="dropdown-menu">
									<li><a href="<?php echo  site_url('secure/my_account');?>"><?php echo lang('my_account')?></a></li>
									<li><a href="<?php echo  site_url('secure/my_downloads');?>"><?php echo lang('my_downloads')?></a></li>
									<li class="divider"></li>
									<li><a href="<?php echo site_url('secure/logout');?>"><?php echo lang('logout');?></a></li>
								</ul>
							</li>
						<?php else: ?>
							<li><a href="<?php echo site_url('secure/login');?>"><?php echo lang('login');?></a></li>
						<?php endif; ?>
							<li>
								<a href="<?php echo site_url('cart/view_cart');?>">
								<?php
								if ($this->go_cart->total_items()==0)
								{
									echo lang('empty_cart');
								}
								else
								{
									if($this->go_cart->total_items() > 1)
									{
										echo sprintf (lang('multiple_items'), $this->go_cart->total_items());
									}
									else
									{
										echo sprintf (lang('single_item'), $this->go_cart->total_items());
									}
								}
								?>
								</a>
							</li>
					</ul>
					
					<?php echo form_open('cart/search', 'class="navbar-search pull-right"');?>
						<input type="text" name="term" class="search-query span2" placeholder="<?php echo lang('search');?>"/>
					</form>
				</div>
			</div>
		</div>
	</div>
	
	<div class="container">
		<?php if(!empty($base_url) && is_array($base_url)):?>
			<div class="row">
				<div class="span12">
					<ul class="breadcrumb">
						<?php
						$url_path	= '';
						$count	 	= 1;
						foreach($base_url as $bc):
							$url_path .= '/'.$bc;
							if($count == count($base_url)):?>
								<li class="active"><?php echo $bc;?></li>
							<?php else:?>
								<li><a href="<?php echo site_url($url_path);?>"><?php echo $bc;?></a></li> <span class="divider">/</span>
							<?php endif;
							$count++;
						endforeach;?>
 					</ul>
				</div>
			</div>
		<?php endif;?>
		
		<?php if ($this->session->flashdata('message')):?>
			<div class="alert alert-info">
				<a class="close" data-dismiss="alert">×</a>
				<?php echo $this->session->flashdata('message');?>
			</div>
		<?php endif;?>
		
		<?php if ($this->session->flashdata('error')):?>
			<div class="alert alert-error">
				<a class="close" data-dismiss="alert">×</a>
				<?php echo $this->session->flashdata('error');?>
			</div>
		<?php endif;?>
		
		<?php if (!empty($error)):?>
			<div class="alert alert-error">
				<a class="close" data-dismiss="alert">×</a>
				<?php echo $error;?>
			</div>
		<?php endif;?>
		

<?php
/*?>
/*
End header.php file
*/